package cn.demographic.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.demographic.dao.Address_cityMapper;
import cn.demographic.dao.Address_countyMapper;
import cn.demographic.dao.Address_provinceMapper;
import cn.demographic.service.ProvinceCityCountyService;
@Service
public class ProvinceCityCountyServiceImpl implements ProvinceCityCountyService{
	@Autowired
	private Address_cityMapper addressCitymapper;
	@Autowired
	private Address_countyMapper addressCountymapper;
	@Autowired
	private Address_provinceMapper addressProvincemapper;
	
	/**
	 * 查询城市信息
	 * @return
	 */
	public Map<String, Object> find(){
		Map<String, Object> map = new HashMap<String,Object>();
		map.put("cityList", addressCitymapper.find());
		map.put("provinceList", addressProvincemapper.find());
		map.put("countyList", addressCountymapper.find());
		return map;
	};
}
